import { createRouter, createWebHistory } from "vue-router";
import Home from "./home";
import NewsDetail from './news-detail';
import Search from './search';
import User from './user';
import CommendDetail from './commend-detail';
import SearchList from './search-list'
import Login from './login'
const routes = [
 
  ...Home,
  ...NewsDetail,
  ...Search,
  ...User,
  ...CommendDetail,
  ...SearchList,
  ...Login,
  ...User
  
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
